.home {
    width: 100%;
    height: 100vh;
    background-color: #f5f5f5;
    padding-bottom: 50px;
    /* 为底部导航留出空间 */
    overflow-y: auto;
}

.header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #fff;
}

.logo {
    height: 1.2rem;
    width: 2.2rem;
}

.searchBar {
    flex: 1;
}

.locationBar {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    color: #333;
    font-size: 14px;
}

.location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.share {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
}

.banner {
    height: 200px;
    width: 100%;
}

.content {
    height: 200px;
    width: 100%;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    user-select: none;
}

.bannerImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categories {
    padding: 16px;
    background-color: #fff;
    margin-bottom: 12px;
}

.categoryItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.categoryIcon {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.categoryText {
    font-size: 12px;
    color: #333;
}

.flashSale {
    background-color: #fff;
    padding: 16px;
    margin-bottom: 12px;
}

.flashSaleHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.flashSaleTitle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: bold;
}

.flashSaleTime {
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.flashSaleMore {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 14px;
}

.flashSaleProducts {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.flashSaleProduct {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.productImage {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.productImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.productName {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.productPrice {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currentPrice {
    color: #ff4d4f;
    font-size: 16px;
    font-weight: bold;
}

.originalPrice {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
}

.addToCartButton {
    --background-color: #ff4d4f;
    --text-color: #fff;
    font-size: 12px;
    padding: 4px 0;
    border-radius: 4px;
}

.groupBuy {
    background-color: #fff;
    padding: 16px;
    margin-bottom: 16px;
    /* 添加底部间距 */
}

.groupBuyHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.groupBuyTitle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: bold;
}

.groupBuyCount {
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.groupBuyMore {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 14px;
}

.groupBuyProducts {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    /* 优化滚动条 */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.groupBuyProducts::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.groupBuyProduct {
    flex: 0 0 calc(33.33% - 6px);
    display: flex;
    flex-direction: column;
    background-color: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
}

.groupBuyProduct .productImage {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    background-color: #f0f0f0;
}

.groupBuyProduct .productImage img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.productInfo {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.groupTag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f7f7f7;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
}

.groupPrice {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.priceLabel {
    font-size: 12px;
    color: #ff4d4f;
}

.loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loadingText {
    color: #fff;
    margin-top: 12px;
    font-size: 14px;
}

.shareDialog {
    padding: 0;
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.dialogHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
}

.dialogHeader h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: normal;
}

.dialogContent {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.shareInfo {
    text-align: center;
    font-size: 16px;
    color: #333;
    padding: 0 16px 24px;
    line-height: 1.8;
    background: white;
}

.qrCodeSection {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 16px;
    background-color: #f8f8f8;
    padding: 12px;
    border-radius: 8px;
}

.qrCode {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 4px;
}

.qrCodeText {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

.saveButton {
    margin-top: 24px;
    --border-radius: 0;
    --background-color: #1677ff;
    --text-color: #fff;
    height: 48px;
    font-size: 16px;
}

:global(.adm-dialog-body) {
    padding: 0 !important;
}

:global(.adm-dialog-mask) {
    background: rgba(0, 0, 0, 0.75) !important;
}